/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

/**
 *
 * @author Stupi
 */
public class ProfitFunction {
    
    private int costYvalue;
    private int fixedCosts;
    private int varCosts;
    private int price;
    private int income;
    private int profit;

    public int getCostYvalue() {
        return costYvalue;
    }

    public void setCostYvalue(int costYvalue) {
        this.costYvalue = costYvalue;
    }
    
    public double getFixedCosts(){
        return fixedCosts;
    }
    
    public void setFixedCosts(int fixedCosts){
        this.fixedCosts = fixedCosts;
    }
    
     public double getVarCosts(){
        return varCosts;
    }
    
    public void setVarCosts(int varCosts){
        this.varCosts = varCosts;
    }
             
    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getIncome() {
        return income;
    }

    public void setIncome(int income) {
        this.income = income;
    }

    public int getProfit() {
        return profit;
    }

    public void setProfit(int profit) {
        this.profit = profit;
    }
    
    public void calculateYCostValue (int x) {
        costYvalue = fixedCosts + (varCosts*x);
    }

    public void calculateYIncome(int x){
        income = price * x;
    }
    
    public void calculateProfit(int x){
        profit = costYvalue - income;
    }
   
}
